package com.trhui.mallbook.common.exception;

/**
 * @author linqy
 */

public enum FailureCode {

    CONFIG_EXCEPTION("config_exception", "MallBook配置未初始化"),

    REQUEST_PARAMETER_ERROR("request_parameter_error", "MallBook请求参数错误"),

    SECURITY_EXCEPTION("security_exception", "签名错误"),

    SYSTEM_EXCEPTION("system_exception", "系统异常"),

    HTTP_TIMEOUT_EXCEPTION("http_timeout_exception", "http请求超时,请检查网络是否正常或超时参数是否设置合理");


    FailureCode(String failureCode, String failureMsg) {
        this.failureCode = failureCode;
        this.failureMsg = failureMsg;
    }

    /**
     * 错误码
     */
    private String failureCode;

    /**
     * 错误描述
     */
    private String failureMsg;

    public String getFailureCode() {
        return failureCode;
    }

    public void setFailureCode(String failureCode) {
        this.failureCode = failureCode;
    }

    public String getFailureMsg() {
        return failureMsg;
    }

    public void setFailureMsg(String failureMsg) {
        this.failureMsg = failureMsg;
    }
}
